<template>
  <div class="records">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      style="height: 100%; background: #37b0c4"
    >
      <el-menu-item
        :index="index"
        v-for="(item, index) in dateList"
        :key="index"
        @click="selectFn(item)"
      >
        <span>{{ item }}</span>
      </el-menu-item>
    </el-menu>
    <div class="records-content">
      <index :timerList1="timerList1"></index>
      <index1 :timerList1="timerList1"></index1>
      <!-- <index :timerList1="timerList"></index>
      <index1 :timerList1="timerList"></index1> -->
    </div>
  </div>
</template>

<script>
import index from "../record/index/index.vue";
import index1 from "../record/ventilate/index.vue";
import { timerList1, timerList } from "@/utils/constant.js";
export default {
  data() {
    return {
      dateList: ["2023-10-16", "2023-10-17", "2023-10-18"],
      timerList1: timerList1,
      timerList: timerList,
    };
  },
  components: {
    index,
    index1,
  },
};
</script>

<style lang="scss" scoped>
.records {
  display: flex;
  // overflow: scroll;
  height: 91vh;

  .records-content {
    // height: vh;
    overflow: scroll;
    display: flex;
    flex-direction: column;
  }
}
</style>
